package com.spvs.system.api;


import com.spvs.common.core.constant.SecurityConstants;
import com.spvs.common.core.constant.ServiceNameConstants;
import com.spvs.common.core.web.domain.AjaxResult;
import com.spvs.system.api.domain.EquipNotice;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 消息通知服务
 */
@FeignClient(contextId = "equipDeptService", value = ServiceNameConstants.SYSTEM_SERVICE)
public interface IEquipDeptService {


    /**
     * 通过用户id查询用户信息
     *
     * @param postId 部门id
     * @param source 请求来源
     * @return 结果
     */
    @GetMapping(value = "/dept/{deptId}")
    public AjaxResult getInfo(@PathVariable(value="deptId") Long postId, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
